﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace aier.dataaccess.model
{
    [XrmEntity("contact", "contactid")]
    public class ContactInfo:BaseModel
    {
        /// <summary>
        /// 转诊医生ID
        /// </summary>
        [XrmFieldMapping("contactid", XrmAttributeType.UniqueIdentifier)]
        public Guid Contactid
        {
            get ;
            set;
        }
        /// <summary>
        /// 系统设定为必填，
        /// 默认值是0:联系人,1:转诊医生
        /// </summary>
        [XrmFieldMapping("new_type", XrmAttributeType.XrmOptionSetValue, true)]
        public int? New_type
        {
            get ;
            set;
        }
        /// <summary>
        /// 姓名
        /// </summary>
        [XrmFieldMapping("lastname", XrmAttributeType.String, true)]
        public string Lastname
        {      
            get;
            set;
        }
        /// <summary>
        /// 性别 男:1,女:2
        /// </summary>
        [XrmFieldMapping("gendercode", XrmAttributeType.XrmOptionSetValue, true)]
        public int? GenderCode
        {
            get ;
            set;
        }
        /// <summary>
        /// 年龄
        /// </summary>
        [XrmFieldMapping("new_age", XrmAttributeType.Int, true)]
        public int? New_age
        {
            get ;
            set;
        }
        /// <summary>
        /// 手机
        /// </summary>
        [XrmFieldMapping("mobilephone", XrmAttributeType.String, true)]
        public string MobilePhone
        {
            get ;
            set;
        }
        /// <summary>
        /// 医院ID
        /// </summary>
        [XrmFieldMapping("new_hospitalname", XrmAttributeType.EntityReference, true)]
        [XrmReferenceType("new_hospital", default(string))]
        public string New_hospitalname
        {
            get;
            set;
        }

        /// <summary>
        /// 科室
        /// 100000000眼科 100000001五官科 
        /// 100000002内泌科 100000003综合科 
        /// 100000004体检医生 100000005其他
        /// </summary>
        [XrmFieldMapping("new_administrativeortechnicaloffices", XrmAttributeType.XrmOptionSetValue, true)]
        public int? New_administrativeortechnicaloffices
        {
            get ;
            set;
        }
        /// <summary>
        /// 职称
        /// 100000000主任医师或教授
        /// 100000001副主任医师或副教授
        /// 100000002主治医生
        /// 100000003医师
        /// </summary>
        [XrmFieldMapping("new_title", XrmAttributeType.XrmOptionSetValue, true)]
        public int? New_title
        {
            get ;
            set;
        }
        /// <summary>
        /// 职务
        /// </summary>
        [XrmFieldMapping("jobtitle", XrmAttributeType.String, true)]
        public string JobTitle
        {
            get ;
            set;
        }
        /// <summary>
        /// 微信号
        /// </summary>
        [XrmFieldMapping("new_wechat", XrmAttributeType.String, true)]
        public string New_wechat
        {
            get ;
            set;
        }
        /// <summary>
        /// QQ
        /// </summary>
        [XrmFieldMapping("new_qq1", XrmAttributeType.String, true)]
        public string New_qq1
        {
            get ;
            set;
        }
        /// <summary>
        /// 邮箱
        /// </summary>
        [XrmFieldMapping("emailaddress1", XrmAttributeType.String, true)]
        public string EMailAddress1
        {
            get ;
            set;
        }
        /// <summary>
        /// 教育程度
        /// 100000000硕士及以上
        /// 100000001大学
        /// 100000002专科
        /// 100000003高中职（含以下）
        /// </summary>
        [XrmFieldMapping("new_educationalstatus", XrmAttributeType.XrmOptionSetValue, true)]
        public int? New_educationalstatus
        {
            get ;
            set;
        }
        /// <summary>
        /// 爱好
        /// </summary>
        [XrmFieldMapping("new_hobby", XrmAttributeType.String, true)]
        public string New_hobby
        {
            get;
            set;
        }
        /// <summary>
        /// 省
        /// </summary>
        [XrmFieldMapping("new_province", XrmAttributeType.EntityReference, true)]
        [XrmReferenceType("new_province", default(string))]
        public string New_province
        {
            get;
            set ;
        }
        /// <summary>
        /// 市
        /// </summary>
        [XrmFieldMapping("new_market", XrmAttributeType.EntityReference, true)]
        [XrmReferenceType("new_city", default(string))]
        public string New_market
        {
            get ;
            set;
        }
        /// <summary>
        /// 区\县
        /// </summary>
        [XrmFieldMapping("new_districtandcounty", XrmAttributeType.EntityReference, true)]
        [XrmReferenceType("new_area", default(string))]
        public string New_districtandcounty
        {
            get;
            set;
        }
        /// <summary>
        /// 社区 
        /// </summary>
        [XrmFieldMapping("new_community", XrmAttributeType.EntityReference, true)]
        [XrmReferenceType("new_community", default(string))]
        public string New_community
        {
            get;
            set;
        }
        /// <summary>
        /// 网医负责人
        /// </summary>
        [XrmFieldMapping("ownerid", XrmAttributeType.EntityReference, true)]
        [XrmReferenceType("systemuser", default(string))]
        public string OwnerId
        {
            get;
            set;
        }
        /// <summary>
        /// 合作意向 0、否；1、是
        /// </summary>
        [XrmFieldMapping("new_cooperativeintention", XrmAttributeType.Boolean, true)]
        public bool? New_cooperativeintention
        {
            get ;
            set;
        }
        /// <summary>
        /// 活跃度 100000000A级100000001B级100000002C级
        /// </summary>
        [XrmFieldMapping("new_liveness", XrmAttributeType.XrmOptionSetValue, true)]
        public int? New_liveness
        {
            get;
            set;
        }
        /// <summary>
        /// 白内障0、否；1、是
        /// </summary>
        [XrmFieldMapping("new_cataract", XrmAttributeType.Boolean, true)]
        public bool? New_cataract
        {
            get ;
            set;
        }
        /// <summary>
        /// 斜视 0、否；1、是
        /// </summary>
        [XrmFieldMapping("new_strabismus", XrmAttributeType.Boolean, true)]
        public bool? New_strabismus
        {
            get;
            set;
        }
        /// <summary>
        /// 青光眼 0、否；1、是
        /// </summary>
        [XrmFieldMapping("new_glaucoma", XrmAttributeType.Boolean, true)]
        public bool? New_glaucoma
        {      
            get;
            set;
        }
        /// <summary>
        /// 泪道   0、否；1、是
        /// </summary>
        [XrmFieldMapping("new_lacrimalpassage", XrmAttributeType.Boolean, true)]
        public bool? New_lacrimalpassage
        {
            get;
            set;
        
        }
        /// <summary>
        /// 屈光不正 0、否；1、是
        /// </summary>
        [XrmFieldMapping("new_ametropia", XrmAttributeType.Boolean, true)]
        public bool? New_ametropia
        {
            get;
            set;
        }
        /// <summary>
        /// 眼底正切 0、否；1、是
        /// </summary>
        [XrmFieldMapping("new_fundustangent", XrmAttributeType.Boolean, true)]
        public bool? New_fundustangent
        {
            get;
            set;
        }

        /// <summary>
        /// 医院职务 
        /// 100000000 科主任
        /// 100000001 门诊医
        /// 100000002 住院医
        /// </summary>
        [XrmFieldMapping("new_hospitalduty", XrmAttributeType.XrmOptionSetValue, true)]
        public int? New_hospitalduty
        {
            get;
            set;
        }
    }
}
